package com.xjtu.chapter05.ex5_2;

/**
 * @author yjq
 * @version 1.0
 * @date 2021/8/16 16:11
 */
public class SuperStar {
    public static void main(String[] args) {
        SingerStar swift = new SingerStar("Taylor Swift",25,'f',"Change");
        System.out.println(swift);
        swift.show();//调用Star中的show()
        swift.sing();//调用SingerStar中的sing()
        swift.dance();//调用SingerStar中实现的dance
        swift.perform();//调用SingerStar中实现的perform
        System.out.println("****************************************");
        MovieStar chengLong = new MovieStar("Jackie Chan",62,'m',"police story");
        System.out.println(chengLong);
        chengLong.show();//调用Star中的show()
        chengLong.perform();//调用MovieStar中实现的perform（）
        chengLong.sing();//调用MovieStar中实现的sing()
        chengLong.dance();//调用MovieStar中实现的dance()
    }
}
